package com.dongdong.bookstore.module.ums.viewmodel;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

/**
 * @author chiangkai
 * @date 2021-10-27
 * @email chiangkk@163.com
 */
@Data
@EqualsAndHashCode
public class MenuParam {
    @ApiModelProperty(value = "菜单名称 菜单名称")
    @NotEmpty(message = "菜单名称不能为空")
    private String name;

    @ApiModelProperty(value = "父ID 父ID")
    @NotEmpty(message = "父菜单不能为空")
    private Long parentId;

    @ApiModelProperty(value = "菜单标题")
    @NotEmpty(message = "菜单标题不能为空")
    private String title;

    @NotEmpty
    @ApiModelProperty(value = "菜单层级 菜单层级")
    private Integer level;

    @ApiModelProperty(value = "图标")
    private String icon;

    @NotEmpty
    @ApiModelProperty(value = "排序 排序")
    private Integer sort;
}
